const express = require('express')
const app = express()
/* app.use(express.static('public')) */
app.get("/api/getprodlist",function(req,res){
    var  arr=[
        {name:"张三",age:18,gender:"男"},
        {name:"张三2",age:19,gender:"女"},
        {name:"张三3",age:20,gender:"男"},
        {name:"张三4",age:21,gender:"女"},
        {name:"张三5",age:22,gender:"男"},
        {name:"张三6",age:23,gender:"女"},
        {name:"张三7",age:24,gender:"男"},
    ];
    res.json({"msg":arr});
})
app.listen(3000, () => {console.log('服务已启动')})
